2650c8
@@ -425,7 +425,8 @@
public class SimpleDirContextFactoryBuilder {
 
                 if (log.isDebugEnabled()) {
                     log.debugf("Creating [" + InitialDirContext.class + "] with environment:");
-                    env.forEach((key, value) -> log.debugf("    Property [%s] with value [%s]", key, Arrays2.objectToString(value)));
+                    env.forEach((key, value) -> log.debugf("    Property [%s] with value [%s]", key,
+                            key != InitialDirContext.SECURITY_CREDENTIALS ? Arrays2.objectToString(value) : "******"));
                 }
 
                 InitialLdapContext initialContext;
